<template>
  <router-view  v-if="isRouterAlive"></router-view>
</template>
<script>
  export  default ({
      name:'app',
      provide () {
          return {
              reload:this.reload
          }
      },
      data() {
          return {
              isRouterAlive:true
          };
      },
      methods:{
          reload () {
              this.isRouterAlive = false
              this.$nextTick(function () {
                  this.isRouterAlive = true
              })
          }
      }
  })
</script>
<style lang="scss">
html,body,#app{
  margin: 0;
  padding: 0;
  height: 100%;
}
.wrapper>.el-card{
  overflow-y: auto;
}
</style>
